import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 200,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    viewBtn: true,
    editBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      // {
      //   label: '关键词',
      //   prop: 'keyword',
      //   overHidden: true,
      //   search: true,
      //   hide: true
      // },
      {
        label: '设施名称',
        prop: 'p1',
        overHidden: true,
        search: true,
      },
      {
        label: '安装位置',
        prop: 'p2',
        filterable: true,
      },
      {
        label: '安装时间',
        prop: 'p3',
        filterable: true,
      },
      {
        label: '设备厂家',
        prop: 'p4',
        filterable: true,
      },
      {
        label: '厂家联系人',
        prop: 'p5',
        filterable: true,
      },
      {
        label: '厂家联系电话',
        prop: 'p6',
        filterable: true,
      },
    ]
  }
}
